Skip to main content

securekeyEncrypt

Type​

handler

Summary​

Encrypt a message using the securekey.

Syntax​

securekeyEncrypt(<pIdentifier>,<pMessage>)

Description​

Encrypts message using the securekey with the given identifier. The returned data can only be decrypted by using securekeyDecrypt.

*NOTE
  • The Secure Key Storage library uses APIs available on iOS 10.0+, macOS 10.12+ and Android 4.3.

Parameters​

NameTypeDescription

pIdentifier

A string used to identify the securekey.

pMessage

The message data to be encrypted

Examples​

if securekeyExists("foo") then
return securekeyEncrypt("foo", "bar")
end if

Value​

NameTypeDescription

return

The encrypted message data

Compatibility and Support​

OS

mac

ios

android

Platforms

desktop

mobile